<template>
    <div class="container">
        <!-- 顶部区域 -->
        <div class="header">
            <div class="app-info">
                <div class="back-btn">←</div>
                <h1 class="page-title">诗词品鉴</h1>
            </div>
            <div class="search-bar">
                <input type="text" placeholder="搜索诗词、作者...">
            </div>
        </div>
        
        <!-- 分类筛选区 -->
        <div class="filter-section">
            <div class="filter-title">筛选条件</div>
            <div class="filter-tags">
                <div class="filter-tag">全部</div>
                <div class="filter-tag active">唐诗</div>
                <div class="filter-tag">宋词</div>
                <div class="filter-tag">元曲</div>
                <div class="filter-tag">诗经</div>
                <div class="filter-tag">魏晋</div>
                <div class="filter-tag">明清</div>
                <div class="filter-tag">乐府</div>
            </div>
        </div>
        
        <!-- 分类导航 -->
        <div class="category-nav">
            <div class="category-item active">全部</div>
            <div class="category-item">抒情</div>
            <div class="category-item">山水</div>
            <div class="category-item">咏物</div>
            <div class="category-item">边塞</div>
            <div class="category-item">田园</div>
            <div class="category-item">送别</div>
            <div class="category-item">怀古</div>
        </div>
        
        <!-- 诗词列表 -->
        <div class="poem-list">
            <div class="poem-section-title">唐诗精选</div>
            
            <div class="poem-card scroll-effect">
                <div class="poem-title">静夜思</div>
                <div class="poem-author">唐代 · 李白</div>
                <div class="poem-preview">
                    床前明月光，疑是地上霜。
                    举头望明月，低头思故乡。
                </div>
                <div class="poem-meta">
                    <span>📖 收录于《全唐诗》</span>
                    <span>⭐ 4.8</span>
                </div>
            </div>
            
            <div class="poem-card">
                <div class="poem-title">春晓</div>
                <div class="poem-author">唐代 · 孟浩然</div>
                <div class="poem-preview">
                    春眠不觉晓，处处闻啼鸟。
                    夜来风雨声，花落知多少。
                </div>
                <div class="poem-meta">
                    <span>📖 收录于《全唐诗》</span>
                    <span>⭐ 4.7</span>
                </div>
            </div>
            
            <div class="poem-card">
                <div class="poem-title">望庐山瀑布</div>
                <div class="poem-author">唐代 · 李白</div>
                <div class="poem-preview">
                    日照香炉生紫烟，遥看瀑布挂前川。
                    飞流直下三千尺，疑是银河落九天。
                </div>
                <div class="poem-meta">
                    <span>📖 收录于《全唐诗》</span>
                    <span>⭐ 4.9</span>
                </div>
            </div>
            
            <div class="poem-section-title">宋词精选</div>
            
            <div class="poem-card">
                <div class="poem-title">水调歌头·明月几时有</div>
                <div class="poem-author">宋代 · 苏轼</div>
                <div class="poem-preview">
                    明月几时有？把酒问青天。
                    不知天上宫阙，今夕是何年。
                    我欲乘风归去，又恐琼楼玉宇...
                </div>
                <div class="poem-meta">
                    <span>📖 收录于《东坡乐府》</span>
                    <span>⭐ 4.9</span>
                </div>
            </div>
            
            <div class="poem-card">
                <div class="poem-title">声声慢·寻寻觅觅</div>
                <div class="poem-author">宋代 · 李清照</div>
                <div class="poem-preview">
                    寻寻觅觅，冷冷清清，凄凄惨惨戚戚。
                    乍暖还寒时候，最难将息。
                    三杯两盏淡酒，怎敌他、晚来风急...
                </div>
                <div class="poem-meta">
                    <span>📖 收录于《漱玉词》</span>
                    <span>⭐ 4.8</span>
                </div>
            </div>
            
            <div class="poem-card">
                <div class="poem-title">青玉案·元夕</div>
                <div class="poem-author">宋代 · 辛弃疾</div>
                <div class="poem-preview">
                    东风夜放花千树，更吹落、星如雨。
                    宝马雕车香满路。
                    凤箫声动，玉壶光转，一夜鱼龙舞...
                </div>
                <div class="poem-meta">
                    <span>📖 收录于《稼轩长短句》</span>
                    <span>⭐ 4.7</span>
                </div>
            </div>
        </div>
        

    </div>
</template>

<style scoped lang="scss">
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Noto Serif SC', serif;
            background: linear-gradient(to bottom, #f9f6ec, #e8dfce);
            color: #5c4f35;
            line-height: 1.6;
            padding: 0;
            margin: 0;
            min-height: 100vh;
        }
        
        .container {
            max-width: 414px;
            margin: 0 auto;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><rect fill="%238e7d5b" width="100" height="100"/></svg>') repeat;
            min-height: 100vh;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 顶部区域 */
        .header {
            background: linear-gradient(135deg, #6d5c43 0%, #8e7d5b 50%, #a39272 100%);
            color: white;
            padding: 25px 15px 15px;
            border-bottom-left-radius: 25px;
            border-bottom-right-radius: 25px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
            min-height: 180px;
        }
        
        /* 水墨山背景 */
        .header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" preserveAspectRatio="none"><path d="M0,70 C50,30 80,50 120,40 C160,30 180,50 200,60 L200,100 L0,100 Z" fill="rgba(0,0,0,0.1)"/></svg>') bottom left/60% 40% no-repeat,
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" preserveAspectRatio="none"><path d="M0,80 C30,50 70,60 100,50 C140,40 160,60 200,70 L200,100 L0,100 Z" fill="rgba(0,0,0,0.15)"/></svg>') bottom left/80% 50% no-repeat,
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" preserveAspectRatio="none"><path d="M0,90 C40,60 80,70 120,60 C150,50 170,70 200,80 L200,100 L0,100 Z" fill="rgba(0,0,0,0.2)"/></svg>') bottom left/100% 60% no-repeat;
            z-index: 1;
            opacity: 0.7;
        }
        
        .header::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0,0 C40,20 60,20 100,0 L100,20 L0,20 Z" fill="%23f9f6ec"/></svg>') center bottom / 100% 100% no-repeat;
            z-index: 2;
        }
        
        .app-info {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            position: relative;
            z-index: 3;
        }
        
        .back-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: white;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .back-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateX(-3px);
        }
        
        .page-title {
            font-family: 'Ma Shan Zheng', cursive;
            font-size: 28px;
            letter-spacing: 3px;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
        }
        
        .search-bar {
            background: rgba(255, 255, 255, 0.92);
            border-radius: 30px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            margin: 10px 0;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 3;
            border: 1px solid rgba(142, 125, 91, 0.2);
        }
        
        .search-bar input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 5px;
            font-size: 16px;
            outline: none;
            color: #5c4f35;
        }
        
        .search-bar input::placeholder {
            color: #a89a7a;
        }
        
        /* 分类筛选区 */
        .filter-section {
            padding: 20px 15px;
            background: rgba(255, 255, 255, 0.7);
            margin: 15px;
            border-radius: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        }
        
        .filter-title {
            font-size: 18px;
            color: #7a6a51;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .filter-title::before {
            content: "〰";
            margin-right: 10px;
            color: #a39272;
        }
        
        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .filter-tag {
            padding: 8px 16px;
            background: #f3efe5;
            border-radius: 20px;
            font-size: 14px;
            color: #6e6147;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(142, 125, 91, 0.1);
        }
        
        .filter-tag.active {
            background: #8e7d5b;
            color: white;
            box-shadow: 0 3px 8px rgba(142, 125, 91, 0.25);
        }
        
        /* 分类导航 */
        .category-nav {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            padding: 0 15px;
            margin-bottom: 20px;
        }
        
        .category-item {
            background: linear-gradient(to bottom, #f3efe5, #e8e1d0);
            border-radius: 12px;
            padding: 15px 5px;
            text-align: center;
            font-size: 15px;
            color: #6e6147;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(142, 125, 91, 0.1);
        }
        
        .category-item.active {
            background: linear-gradient(to bottom, #8e7d5b, #7a6a51);
            color: white;
            box-shadow: 0 5px 12px rgba(142, 125, 91, 0.25);
            transform: translateY(-3px);
        }
        
        .category-item.active::after {
            content: "•";
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 18px;
        }
        
        /* 诗词列表 */
        .poem-list {
            padding: 0 15px 80px;
        }
        
        .poem-section-title {
            font-size: 20px;
            color: #7a6a51;
            margin: 20px 0 15px;
            padding-left: 15px;
            border-left: 4px solid #7a6a51;
            font-weight: bold;
        }
        
        .poem-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(142, 125, 91, 0.1);
            position: relative;
            transition: all 0.3s ease;
        }
        
        .poem-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }
        
        .poem-title {
            font-size: 22px;
            font-weight: bold;
            color: #5c4f35;
            margin-bottom: 8px;
            font-family: 'Ma Shan Zheng', cursive;
        }
        
        .poem-author {
            font-size: 16px;
            color: #8e7d5b;
            margin-bottom: 15px;
        }
        
        .poem-preview {
            font-size: 18px;
            line-height: 1.8;
            color: #5c4f35;
            margin-bottom: 15px;
            padding: 15px;
            background: #faf8f1;
            border-radius: 10px;
            border-left: 3px solid #c4b28d;
            font-family: 'Ma Shan Zheng', cursive;
        }
        
        .poem-meta {
            display: flex;
            justify-content: space-between;
            color: #8e7d5b;
            font-size: 14px;
            border-top: 1px dashed #e8e1d0;
            padding-top: 12px;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            width: 100%;
            max-width: 414px;
            display: flex;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            border-top-left-radius: 25px;
            border-top-right-radius: 25px;
            overflow: hidden;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(142, 125, 91, 0.1);
        }
        
        .nav-item {
            flex: 1;
            text-align: center;
            padding: 16px 0;
            font-size: 14px;
            color: #a89a7a;
            position: relative;
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .nav-item.active {
            color: #7a6a51;
            font-weight: bold;
        }
        
        .nav-item.active::before {
            content: "";
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 35px;
            height: 3px;
            background: linear-gradient(to right, #c4b28d, #8e7d5b);
            border-radius: 0 0 3px 3px;
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .poem-card {
            animation: fadeIn 0.5s ease-out;
        }
        
        /* 响应式调整 */
        @media (max-width: 360px) {
            .category-nav {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .page-title {
                font-size: 24px;
            }
            
            .poem-preview {
                font-size: 16px;
            }
        }
        
        /* 卷轴效果 */
        .scroll-effect {
            position: relative;
        }
        
        .scroll-effect::before, .scroll-effect::after {
            content: "";
            position: absolute;
            height: 15px;
            left: 10px;
            right: 10px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 15" preserveAspectRatio="none"><path d="M0,0 C30,15 70,15 100,0 L100,15 L0,15 Z" fill="%23e8e1d0"/></svg>') center top / 100% 100% no-repeat;
        }
        
        .scroll-effect::before {
            top: -10px;
        }
        
        .scroll-effect::after {
            bottom: -10px;
            transform: rotate(180deg);
        }
</style>
